<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

 <script>
   var b="undefined";
   if(b){
       console.log(b)
   }
 </script>
</body>
</html>